element.on('tab(tabData)', function (data) {
    let tab_data = $(this).attr('lay-data');
    let limit = $('#limit').val();
    //获取字段名
    let field = $("#tab_name").val();
    //封装tab搜索条件
    let search = new Object();
    search[field] = {k: '=', v: tab_data};

    if(limit && limit > 0) {
        table.reload('dataTable', {
            page: {
                curr: 1 //重新从第 1 页开始
            },
            where: {
                search: search,
            }
        })
    } else {
        table.reload('dataTable', {
            where: {
                search: search,
            }
        })
    }
});
